<template>
    <div>
        <div>
            <Table stripe :columns="columns1" :data="data1"></Table>
        </div>
        <Row type="flex" justify="end" class="mt20 mr20">
            <Col>
                <Page :total="50"/>
            </Col>
        </Row>
    </div>
</template>

<script>
export default {
  name: 'tableTwo',
  data () {
    return {
      columns1: [
        {
          title: '序号',
          key: 'id',
          width: 60
        },
        {
          title: '名称',
          key: 'name',
          width: 120
        }, {
          title: '所属企业',
          key: 'company',
          minWidth: 100
        }, {
          title: '风险因素',
          key: 'fengxianyinsu',
          minWidth: 100
        }, {
          title: '隐患因素',
          key: 'yinhuanyinsu',
          minWidth: 100
        }, {
          title: '事故概率',
          key: 'shigugailv',
          width: 100
        }, {
          title: '折扣比率',
          key: 'zhikoubilv',
          width: 100
        }
      ],
      data1: []
    }
  },
  mounted () {
    let data = []
    for (let i = 0; i < 5; i++) {
      data.push({
        id: i + 1,
        name: '车队' + i,
        company: '营口科达运输有限公司',
        fengxianyinsu: '因素1（0.314）因素二（0.324）因素三（0.216）',
        yinhuanyinsu: '因素1（0.314）因素二（0.324）因素三（0.216)',
        shigugailv: 0.0321,
        zhekoubilv: 10
      })
    }
    this.data1 = data
  }
}
</script>

<style scoped>

</style>
